<template>
  <div>
    御剑乘风来,除魔天地间!
    <button @click="btn">按钮</button>
  </div>
</template>
<script>

export default {
  name: '',
  setup () {
    // 没有this
    /* 
    setup特征：
    1-没有this
    2-必须return  {}
    3-执行时机比beforeCreate还要早
    */
    console.log(this, 888);
    const btn = () => {
      console.log(1111);
    }

    return { btn }
  }

}
</script>
<style lang='less'  scoped>
</style>
